<?php

namespace App\Http\Models;

use Illuminate\Database\Eloquent\Model;

class Photo extends Model
{

    protected $fillable = ['url','user_id','album_id'];

    public function album(){
        return $this->belongsTo('App\Http\Models\Album');
    }

    public function user(){
        return $this->belongsTo('App\Http\Models\User');
    }

}
